package cn.cc.code;

import java.rmi.ServerError;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.stream.Stream;

public class Test {
    public static void main(String[] args) {
        List<Integer> list = Arrays.asList(1, 2, 3, 4,4);
        Stream<Integer> stream = list.stream();
        System.err.println(stream.distinct());


    }
}